package com.example.malltest.admin.service;

import com.example.malltest.admin.entity.Admin;
import com.example.malltest.admin.entity.AdminDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * 服务层
 */
@Service
public interface AdminService {

    Admin login(AdminDTO adminDTO);

    Admin getAdmin(String name);

    void edit(String name, Admin admin);

    void updatePwd(String name, String password,String password1);

    void avatar(String name, MultipartFile image);

    String getAvatar(String name);
}
